package com.ruoyi.system.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 方剂与药物关联关系对象 sys_app_prescriptioninfo_medicine
 * 
 * @author ruoyi
 * @date 2020-10-11
 */
public class SysAppPrescriptioninfoMedicine extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** id */
	private Long id;

	/** 方剂id */
	@Excel(name = "方剂id")
	private Long prescriptioninfoId;

	private String title;

	/** 药物id */
	@Excel(name = "药物id")
	private Long medicineId;

	/** 药物名称 */
	@Excel(name = "药物名称")
	private String medicineName;

	/** 药物剂量 */
	@Excel(name = "药物剂量")
	private String medicineDosage;

	/** 使用方式 */
	@Excel(name = "使用方式")
	private String usageMode;

	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date creteTime;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setPrescriptioninfoId(Long prescriptioninfoId) {
		this.prescriptioninfoId = prescriptioninfoId;
	}

	public Long getPrescriptioninfoId() {
		return prescriptioninfoId;
	}

	public void setMedicineId(Long medicineId) {
		this.medicineId = medicineId;
	}

	public Long getMedicineId() {
		return medicineId;
	}

	public void setMedicineName(String medicineName) {
		this.medicineName = medicineName;
	}

	public String getMedicineName() {
		return medicineName;
	}

	public void setMedicineDosage(String medicineDosage) {
		this.medicineDosage = medicineDosage;
	}

	public String getMedicineDosage() {
		return medicineDosage;
	}

	public void setUsageMode(String usageMode) {
		this.usageMode = usageMode;
	}

	public String getUsageMode() {
		return usageMode;
	}

	public void setCreteTime(Date creteTime) {
		this.creteTime = creteTime;
	}

	public Date getCreteTime() {
		return creteTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("prescriptioninfoId", getPrescriptioninfoId()).append("title", getTitle())
				.append("medicineId", getMedicineId()).append("medicineName", getMedicineName())
				.append("medicineDosage", getMedicineDosage()).append("usageMode", getUsageMode())
				.append("creteTime", getCreteTime()).toString();
	}
}
